 /******************************************************************************
 * Name        : class.cpp
 * Author      : yinjianwen
 * Create      : 2018年3月22日
 * Version     :
 * Copyright   : Copyright © 1998 - 2017 Bluedon All Rights Reserved
 * description : C++, Ansi-style
 * function		: 
 *****************************************************************************/

#include <stdio.h>
#include <string.h>
#include "class.h"

SingletonHunger * SingletonHunger::m_pStHunger = new SingletonHunger;
SingletonHunger * SingletonHunger::GetInstance()
{
    return m_pStHunger;
}
void SingletonHunger::DestroySingleton()
{
    delete m_pStHunger;
    m_pStHunger = NULL;
    printf("DestroySingleton end\n");
}
SingletonHunger::SingletonHunger()
{

}
SingletonHunger::~SingletonHunger()
{
    printf("~SingletonHunger::begin\n");
    printf("~SingletonHunger::end\n");
}
int SingletonHunger::Add(int i, int j)
{
    return i + j;
}
